package org.budo.support.java.io.util;

import java.io.IOException;
import java.io.InputStream;

/**
 * @author li
 */
public class InputStreamUtil {
    public static int read(InputStream inputStream, byte[] buf) {
        try {
            return inputStream.read(buf);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}